
<!DOCTYPE html>
<html lang="en-us">
	
<include file="Common/Common/head" />  
<body class="desktop-detected pace-done smart-style-3">

<!-- #HEADER -->
<include file="Common/Common/header" />
<!-- END HEADER -->

<!-- #NAVIGATION -->
<include file="Widget/Common/navigation" />
<!-- END NAVIGATION -->
		               
<!-- #MAIN PANEL -->
<div id="main" role="main">

	<!-- RIBBON -->
	<div id="ribbon">

		<!-- breadcrumb -->
		<ol class="breadcrumb">
			<li>{$module_name}</li>					
		</ol>
		<!-- end breadcrumb -->
	</div>
	<!-- END RIBBON -->

	<!-- #MAIN CONTENT -->
    <div id="content">
		<div class="row">
			<div class="col-xs-12 col-sm-7 col-md-7 col-lg-4">
				<h1 class="page-title txt-color-blueDark">	
                    <!-- PAGE HEADER -->
                    <i class="fa-fw fa fa-home"></i> 
                    {$first_title}
                    <span>>  
                    {$second_title}
                    </span>
                </h1>
			</div>
					
		</div>
				
		<!-- widget grid -->
		<section id="widget-grid" class="">
				
			<!-- row -->
			<div class="row">
				
				<!-- NEW WIDGET START -->
				<article class="col-xs-12 col-sm-12 col-md-12 col-lg-12 sortable-grid ui-sortable">
				
					<!-- Widget ID (each widget will need unique ID)-->
					<div class="jarviswidget jarviswidget-color-white" id="wid-id-0" data-widget-colorbutton="false" data-widget-editbutton="false" data-widget-togglebutton="false" data-widget-deletebutton="false" data-widget-sortable="false">
					<!-- widget options:
						usage: <div class="jarviswidget" id="wid-id-0" data-widget-editbutton="false">				
						data-widget-colorbutton="false"
						data-widget-editbutton="false"
						data-widget-togglebutton="false"
						data-widget-deletebutton="false"
						data-widget-fullscreenbutton="false"
						data-widget-custombutton="false"
						data-widget-collapsed="true"
						data-widget-sortable="false"				
					-->
						<header>
							<span class="widget-icon"> <i class="fa fa-edit"></i> </span>
							<h2>添加主题</h2>
						</header>
				
						<!-- widget div-->
						<div>
				
							<!-- widget edit box -->
							<div class="jarviswidget-editbox">
							<!-- This area used as dropdown edit box -->				
							</div>
							<!-- end widget edit box -->
				
							<!-- widget content -->
							<div class="widget-body">				
								<form class="form-horizontal" action="{:U('topic_add')}" data-toggle="validator" role="form" method="post" enctype="multipart/form-data">
									<fieldset>
									
										<div class="form-group">
											<label class="col-md-2 control-label">专题名</label>
											<div class="col-md-10">
												<input type="text" name="vtitle" class="form-control" placeholder="专题名" data-error="专题名不能为空，请输入标题！" required>
												<span class="glyphicon form-control-feedback" aria-hidden="true"></span>
                                                <div class="help-block with-errors"></div>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 control-label">头部图片</label>
											<div class="col-md-10">
												<input type="file" name="vtop_img" class="btn btn-default">
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 control-label">开始时间</label>
											<div class="col-md-10">
                                            	<input type="date" name="btime" class="form-control" placeholder="开始时间">
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 control-label">结束时间</label>
											<div class="col-md-10">
                                            	<input type="date" name="etime" class="form-control" placeholder="开始时间">
											</div>
										</div>
										<!--<div class="form-group">
											<label class="col-md-2 control-label">发布时间</label>
											<div class="col-md-10">
												<div class="input-group">
													<input type="text" name="stime" placeholder="选择发布时间" class="form-control datepicker" data-dateformat="dd/mm/yy">
													<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
												</div>
											</div>
										</div>-->
										<div class="form-group">
											<label class="col-md-2 control-label">活动规则</label>
											<div class="col-md-10">
												<script id="container" name="rules" type="text/plain" style="width: 100%;height: 250px;"></script>
												<span class="glyphicon form-control-feedback" aria-hidden="true"></span>
                    							<div class="help-block with-errors"></div>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 control-label">活动说明</label>
											<div class="col-md-10">
												<input type="text" name="remarks" class="form-control" placeholder="投票前20名送去检测">
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 control-label">每日票数</label>
											<div class="col-md-10">
												<input type="text" name="max_num" class="form-control" placeholder="">
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 control-label">重复投票次数</label>
											<div class="col-md-10">
												<input type="text" name="repeat_num" class="form-control" placeholder="单个产品每日可重复投票数">
											</div>
										</div>
<!-- 										<div class="form-group">
											<label class="col-md-2 control-label">是否显示</label>
											<div class="col-md-10">
                                                <label class="radio radio-inline">
                                                    <input type="radio" class="radiobox" value="0" name="isvisible" checked>
                                                    <span>显示</span>  
                                                </label>
                                                <label class="radio radio-inline">
                                                    <input type="radio" class="radiobox" value="1" name="isvisible">
                                                    <span>隐藏</span> 
                                                </label>
											</div>
										</div> -->
									</fieldset>
									<div class="form-actions">
										<div class="row">
											<div class="col-md-12">
												<button class="btn btn-default" type="button" onclick="javascript:go_back();">返回</button>
												<button class="btn btn-primary" type="submit">添加</button>
											</div>
										</div>
									</div>
								</form>
							</div>
							<!-- end widget content -->
				
						</div>
						<!-- end widget div -->
				
					</div>
					<!-- end widget -->
				
				</article>
				<!-- WIDGET END -->
				
			</div>			
			<!-- end row -->
				
		<!-- end row -->
				
		</section>
		<!-- end widget grid -->

	</div>
                                
	<!-- end row -->
			
	<!-- END #MAIN CONTENT -->

</div>
<!-- END #MAIN PANEL -->

<!-- #PAGE FOOTER -->
				
<include file="Common/Common/footer" />

<script src="{$resource_path}js/app.config.js"></script>

<!-- JS TOUCH : include this plugin for mobile drag / drop touch events-->
<script src="{$resource_path}js/plugin/jquery-touch/jquery.ui.touch-punch.min.js"></script> 

<!-- BOOTSTRAP JS -->
<!--<script src="{$resource_basic}js/bootstrap/bootstrap.min.js"></script>-->



<!-- JARVIS WIDGETS -->
<script src="{$resource_path}js/smartwidgets/jarvis.widget.min.js"></script>

<!-- plugin -->
<script src="{$resource_path}js/plugin/bootstrap-timepicker/bootstrap-timepicker.min.js"></script>
<script src="{$resource_path}js/plugin/bootstrap-tags/bootstrap-tagsinput.min.js"></script>
<!-- bootstrap validator -->
<script src="{$resource_path}js/plugin/bootstrap-validator/validator.min.js"></script> 
<!-- umeditor -->
<script type="text/javascript" src="__PUBLIC__/umeditor/umeditor.config.js"></script>
<script type="text/javascript" src="__PUBLIC__/umeditor/umeditor.js"></script>
<script type="text/javascript">

// DO NOT REMOVE : GLOBAL FUNCTIONS!
(function($){
  window.um = UM.getEditor('container', {
    /* 传入配置参数,可配参数列表看umeditor.config.js */
    //toolbar: ['undo redo | bold italic underline']
  });
})(jQuery);
function go_back(){
	history.go(-1);
}
$(document).ready(function() {

    pageSetUp();
})

</script>		
</body>
</html>